EndAcitivitySetting=function (editor) {
	this.editor = editor;
	this.setting = this.getCurrentAttributeSetting("end");
};

mxUtils.extend(EndAcitivitySetting, AttributeSetting);

/**
 * 渲染结束活动属性设置页面
 */
EndAcitivitySetting.prototype.renderEndActSetting = function() {
	var basicAttrRegion = $('#ef_region_basicAttr');
	$('#name', basicAttrRegion)
			.attr('value', this.setting.getAttribute('Name'));
	$('#displayName', basicAttrRegion).attr('value',
			this.setting.getAttribute('DisplayName'));
	//var description = $('Extras Description', this.setting)[0];
	if (description != null) {
		/*$('#description', basicAttrRegion).attr('value', $(description).text());*/
        document.getElementById('description').value=this.setting.getAttribute('Description');
	}
};
/**
 * 保存结束活动属性设置
 */
EndAcitivitySetting.prototype.updateEndActSetting = function() {
	// 获取活动属性配置
    var name = $('#name').val();
    var displayName = $('#displayName').val();
    var description = $('#description').val();


// 设置基本属性
    var cas = this.setting;
    cas.setAttribute('Name', name);
    cas.setAttribute('DisplayName', displayName);
    cas.setAttribute('Description', description);
    this.updateAttributeSetting();

};